package org.andes.help.struct;

import java.util.ArrayList;
import java.util.List;

import lisp.SExp;

/**
 * Created by IntelliJ IDEA. User: wenfeix Date: 2011-2-1 Time: 21:02:25 To
 * change this template use File | Settings | File Templates.
 */

// csdo
public class DoNode extends PsmNode {
	private String Label;
	private SExp op;
	public SExp getOp(){
		return op;
	}
	// private List<Entry> effects;
	private List<SExp> effects=new ArrayList<SExp>();
	String varvals;
	private List<SystemEntry> entries;

	public List<SystemEntry> entries() {
		return entries;
	}

	public void readContent(SExp sexp) {
		List<SExp> elemList = sexp.toList();
		op = elemList.get(1);
		for (SExp e : elemList.get(2).toList()) {
			effects.add(e);
		}
		varvals = elemList.get(3).GetValue();

	}

	public List<SExp> effects() {
		return effects;
	}

}
